.flash-messages= error_messages_for 'mirror'

.box

  %p= f.text_field :url, required: true, size: 65, label: :label_url
  %em
    %p
      = l(:label_mirror_url_accepted_format) + ' :'
      <br/>
      ssh://git@redmine.example.org/project1/project2/project3/project4.git<br/>
      ssh://git@redmine.example.org:2222/project1/project2/project3/project4.git<br/>

  %p= f.check_box :active

  %p= f.select :push_mode, options_for_select(mirrors_options, @mirror.push_mode), { label: :label_mirror_push_mode }, onchange: "push_mode_change(this); return false;"

  #ref_spec_options{ style: @mirror.mirror_mode? ? 'display: none;' : '' }
    %p= f.check_box  :include_all_branches, label: :label_mirror_include_all_branches
    %p= f.check_box  :include_all_tags,     label: :label_mirror_include_all_tags
    %p= f.text_field :explicit_refspec,     label: :label_mirror_explicit_refspec, size: 65
